package com.chinatelecom.clientservice.dao.dev;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import com.chinatelecom.clientservice.pojo.BaseUsers;
import com.chinatelecom.clientservice.pojo.BaseUsersExample;

public interface BaseUsersMapper {
    int countByExample(BaseUsersExample example);

    int deleteByExample(BaseUsersExample example);

    int deleteByPrimaryKey(String id);

    int insert(BaseUsers record);

    int insertSelective(BaseUsers record);

    List<BaseUsers> selectByExample(BaseUsersExample example);
    
    List<BaseUsers> selectByExample(BaseUsersExample example,RowBounds rowBounds);

    BaseUsers selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") BaseUsers record, @Param("example") BaseUsersExample example);

    int updateByExample(@Param("record") BaseUsers record, @Param("example") BaseUsersExample example);

    int updateByPrimaryKeySelective(BaseUsers record);

    int updateByPrimaryKey(BaseUsers record);
    
	int insertUserRoleInfo(@Param("params") Map<String, String> params);

	List<String> selectRoleIdByUserId(String userId);
	
	int deleteRoleByUserId(String userId);
}